package com.wash.shoes.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wash.shoes.domain.vo.CustomerCouponVo;
import com.wash.shoes.entity.CouponPo;
import com.wash.shoes.entity.CustomerCouponPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ljg
 * @since 2024-12-01
 */
public interface CustomerCouponService extends IService<CustomerCouponPo> {

    /**
     * 查询数据的列表
     *
     * @param customerCouponVo
     * @return
     */
    Page<CustomerCouponVo> pageList(CustomerCouponVo customerCouponVo);

    /**
     * 查询数量
     *
     * @param customerId
     * @param couponId
     * @return
     */
    List<CustomerCouponPo> getUserCouponCount(String customerId, String couponId);

    /**
     * @author lijianguo
     * @Date 07/12/2024
     * 查询订单的优惠券
     **/
    CustomerCouponPo getByOrderId(String orderId);

    /**
     * @param customerId
     * @param id
     * @return
     */
    CustomerCouponPo getByInfo(@Param("customerId") String customerId, @Param("id") String id);
}
